import request from '@/utils/request'

// 查询参数告警存储列表
export function listParamAlarmRec(query) {
  return request({
    url: '/basic/paramAlarmRec/list',
    method: 'get',
    params: query
  })
}

// 查询参数告警存储详细
export function getParamAlarmRec(id) {
  return request({
    url: '/basic/paramAlarmRec/' + id,
    method: 'get'
  })
}

// 新增参数告警存储
export function addParamAlarmRec(data) {
  return request({
    url: '/basic/paramAlarmRec',
    method: 'post',
    data: data
  })
}

// 修改参数告警存储
export function updateParamAlarmRec(data) {
  return request({
    url: '/basic/paramAlarmRec',
    method: 'put',
    data: data
  })
}

// 删除参数告警存储
export function delParamAlarmRec(id) {
  return request({
    url: '/basic/paramAlarmRec/' + id,
    method: 'delete'
  })
}

// 导出参数告警存储
export function exportParamAlarmRec(query) {
  return request({
    url: '/basic/paramAlarmRec/export',
    method: 'get',
    params: query
  })
}

export function queryCountTopFive(query) {
  return request({
    url: '/basic/paramAlarmRec/queryCountTopFive',
    method: 'get',
    params: query
  })
}

export function queryCountTrend(query) {
  return request({
    url: '/basic/paramAlarmRec/queryCountTrend',
    method: 'get',
    params: query
  })
}

export function queryCountParam(query) {
  return request({
    url: '/basic/paramAlarmRec/queryCountParam',
    method: 'get',
    params: query
  })
}
